<html>
<head><meta charset="utf-8"><title>x.py uses wrong RUSTC path · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/x.2Epy.20uses.20wrong.20RUSTC.20path.html">x.py uses wrong RUSTC path</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="229630302"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/x.py%20uses%20wrong%20RUSTC%20path/near/229630302" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Dominik Stolz <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/x.2Epy.20uses.20wrong.20RUSTC.20path.html#229630302">(Mar 10 2021 at 09:55)</a>:</h4>
<p>Hi everyone! I moved my rust directory from <code>old/rust</code> to <code>new/rust</code> but now <code>x.py</code> fails with <code>failed to execute command: "old/rust/build/x86_64-unknown-linux-gnu/stage0/bin/rustc" "--target" "x86_64-unknown-linux-gnu" "--print" "target-libdir"</code>. Does anybody have an idea why it would still use the old path?</p>



<a name="229667447"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/x.py%20uses%20wrong%20RUSTC%20path/near/229667447" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/x.2Epy.20uses.20wrong.20RUSTC.20path.html#229667447">(Mar 10 2021 at 14:21)</a>:</h4>
<p>Try removing the build cache, maybe?</p>



<a name="229765707"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/x.py%20uses%20wrong%20RUSTC%20path/near/229765707" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/x.2Epy.20uses.20wrong.20RUSTC.20path.html#229765707">(Mar 10 2021 at 23:24)</a>:</h4>
<p>(Use <code>./x.py clean</code> to remove the build cache.)</p>



<a name="229765726"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/x.py%20uses%20wrong%20RUSTC%20path/near/229765726" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/x.2Epy.20uses.20wrong.20RUSTC.20path.html#229765726">(Mar 10 2021 at 23:24)</a>:</h4>
<p>(Or <code>rm -rf build/</code> but that will remove LLVM's build as well.)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>